package com.example.progresshint;

import com.warkiz.widget.IndicatorStayLayout;

import io.techery.progresshint.addition.widget.SeekBar;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

import ohos.agp.utils.Color;
import ohos.agp.window.service.WindowManager;

public class ScrollAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        getWindow().addFlags(WindowManager.LayoutConfig.MARK_DRAWS_SYSTEM_BAR_BACKGROUNDS);
        getWindow().clearFlags(WindowManager.LayoutConfig.MARK_TRANSLUCENT_STATUS);
        getWindow().setStatusBarColor(Color.BLACK.getValue());
        super.setUIContent(ResourceTable.Layout_ability_scroll);

        SeekBar horSeekbar1 = (SeekBar) findComponentById(ResourceTable.Id_seekbar1);
        IndicatorStayLayout horStayLayout1 = (IndicatorStayLayout) findComponentById(ResourceTable.Id_staylayout1);
        horStayLayout1.layoutIndicator(horSeekbar1, 0);
    }
}
